package projects.jnurse.ioc.proxy;

import java.lang.reflect.Method;
import java.lang.reflect.Field;

/**
 * Created by Adil Naji.
 * User: XP-170708
 * Date: 18 nov. 2008
 * Time: 17:30:56
 */
public class DummyInterceptor implements AOPInterceptor {
    public void before(Method method, Object[] args) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void after(Method method, Object[] args) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void afterThrowing(Method method, Object[] args, Throwable throwable) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void afterFinally(Method method, Object[] args) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void setField(Object target, Field field, Object value) {
        field.setAccessible(true);
        try {
            field.set(target, value);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
